Tuck a window, keep a pill
Press ⌃⌥← or ⌃⌥→ and the front window tucks off that side of the screen, or ⌃⌥↓ off the bottom. A sliver stays behind, with a small pill wearing its app’s icon.
Rest the pointer on the pill and the window slides back out, right where it was. Push against the edge again and it tucks away. Or have it tuck itself the moment the pointer leaves.