I can kind of see the idea here. The alternative is that all the other windows in the working desktop get hidden behind the fullscreen window. That's pretty bad UX. I personally avoid it on Linux by always moving a window to its own desktop before fullscreening it.
That said, the implementation is awful, and exposes the rotten foundations of Mac's window management paradigm.
IMO floating windows always fall apart and should be reserved for modals and transient dialog boxes only. Everything gets a lot easier to understand when applications can't occlude one another or occupy the same space.