I cannot move the main toolbar

I accidentally moved the main toolbar out of place and now it’s its own window. I have no way to move it back to where it was before. The yellow triangle in the top left hand corner is faded as if it’s disabled. Here are some screenshots: