Most Wayland compositors don not have the concept of multiple windows being one application. And you cannot always control how and where they appear.
This is not a Wayland complaint. Just pointing out that old GIMP was just not very compatible with the core Design of Wayland.
Depending on what compositor you use, a lot of this has really improved.
The FSF approach the microcode is just brain dead.