Have you tried Yabai? If you have, I’m wondering why it didn’t work out for you.
The concept is best explained in the River documentation: https://codeberg.org/river/wiki-classic/src/branch/main/page...
As far as I know, not many WMs adopt this paradigm (mostly dwm, awesome, and river), and Yashiki is likely the only one on macOS.