Gnome has the same problem, that's why this exists: https://extensions.gnome.org/extension/4691/pip-on-top/