I was doing some stuff and this window popped up

I don't know how to get rid of it and I want this window back:

I was doing some stuff and this window popped up

I don't know how to get rid of it and I want this window back:

You can change the editor type in the dropdown icon in the header:

The one you want is the Properties editor.