Tbf, thanks to X11 Linux isn't safe from stuff like that.
When I use my VR glasses, Steam sometimes creates an uncloseable X window that isn't attached to any process. I don't think even killing XWayland gets rid of it.
On Plasma Desktop, pressing Ctrl+Alt+ESC kills anything you click on next, instantly. There is truly nothing you can't kill that way, even the desktop itself.