there is an xdg-desktop-portal feature that allows this, or pretend that a different desktop is used by setting XDG_CURRENT_DESKTOP for the application, as well as KGtk which is a library that can be loaded with LD_PRELOAD.
either of these have to be applied per application though.