Just drag the small window to the top right below the toolbar, you'll see the area highlighted and when you drop it the file should dock.
Another way to do this:
Window menu > Arrange > Consolidate All to Tabs
ahh! you're amazing! I had to enable docking, I somehow must have turned it off. THANK YOU!!!!