edit: You can also use something like rofi to fuzzy search for windows and quickly jump to them, instead of alt+tabbing.
Using it to cycle through a pile of apps shown as icons or screenshots is terrible UX, IMHO.
This is basically what I do at work on a Windows system, using the drag-to-left and drag-to-right.
For your example case, I'd split the screen with my editor taking up the left half, the split the right half into upper and lower, with SO answer in top half and terminal in bottom half. That's the quick and easy split, I could also fiddle with resizing (using arrow keys) the split a bit left/right or up/down.
This gets the info all visible at the same time, without clicking or tabbing to bring one window at a time to the top.
The usage I described above is what I do on my work machine using i3. I'm gonna try out sway now that it's 1.0!