The floating text is a rendering glitch caused by macOS's drag-and-drop mechanism getting interrupted. This occasionally occurs in macOS Tahoe when a brief lag stalls the system's compositing engine right as you release a text selection.
How did it get there?
Normally, highlighting text and dragging it to your desktop creates a snippet file called a "Text Clipping". When you accidentally or quickly drag text across the screen, macOS generates a temporary semi-transparent "ghost" overlay under your cursor to visually show what you are moving.
If the application you are dragging from (like Mail) or the system window server drops the connection before the animation completes, the visual layer detaches and gets permanently stuck on your screen. Because it is just a stray layer of raw pixels floating on top of the window compositor, it doesn't exist as a real file in Finder or Terminal.
Since killing the Finder doesn't work (as Finder doesn't manage the active window rendering engine), you can clear it instantly using one of these workarounds without rebooting (are they 'elegant'? you decide...)
Kill the WindowServer
The WindowServer is the core process that handles everything you see on screen, including these stuck visual layers. Restarting it will immediately clear the ghost artifacts without a full machine reboot, though it will log you out of your desktop session.
- Open Terminal (via Spotlight or Applications > Utilities).
- Type the following command and hit return:
sudo killall -9 WindowServer
- Type your Mac password when prompted (nothing will appear on the screen as you type), then press return.
- Your screens will go black for a second and return you with a fresh display canvas.
Change your Screen Resolution (Forces a screen refresh)
Forcing macOS to recalculate the screen layout will reset all graphic layers and purge the phantom text box.
- Go to the Apple menu > System Settings.
- Click Displays on the left sidebar.
- Select any resolution different from your current one (e.g., toggle from "Default" to "More Space").
- Once the screen flashes and changes, switch it right back to your original preferred resolution.

More on that from Apple: Change your Mac display’s resolution - Apple Support