Probably the best long term solution is for the floating windows to be promoted to first class top level windows, with a menu bar and everything.
Otherwise it seems like there will be endless problems trying to get focus handled correctly in so many different ways.
As a bonus it would be easier for users to switch between these windows, using alt-tab, and each could have their own independent tab ordering.