Windows behave like windows
Drag a title bar with a pointer, or focus it and nudge with the arrow keys. Whatever you touched last comes to the front, and Esc closes the focused window.
The dock opens an app again where you left it. On a phone the same tools open as full-screen sheets from the launcher.