Composer window stuck in undocked position

I somehow made the composer window floating, and cant find any way to have it docked back into the side again.
It’s now floating on top of the code and I have to move it out of the way all the time.
How can I have it moved back to docked as default?

Hey, try the shortcut Cmd/Ctrl + D to switch modes.