There was also talk about restricting what kind of windows can be created with this protocol so that fullscreen overlays are not possible (because they can be abused for nefarious purposes). Not sure if it was implemented.
A permission system, similar do Android's "Allow to appear on top?" is the actual solution to that problem. Disclaimer: No idea if anybody (KDE or otherwise) implemented it.