How to put viewport back in place

So I accidentally took the viewport tab and made it a completely different window and I want it back to normal, Here is how it looks:

They are two different windows.

So can someone please help me.

Try this:

I actually do not know how manually re-dock viewports :expressionless: