You didn't post your photo...
But, what I believe you want to look at is 'ganging' (basically mulling). See attached screenshot. Any combination of windows can be combined (with varying results - depending on your library version). Tick the box corresponding to the side of a window that joins the side of another window.
One of the forum moderators
AC 28 USA and earlier • macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB