Gimp is set default to launch in separate windows. You can merge these into a single window by enable it. Go to Windows -> Single-Window Mode
It will happen right away without the need of a restart. To disable and go back to separate windows do the same Windows -> Single-Window mode and it’ll be disabled.