how to ungroup windows on mac
I believe that you should try to adapt to a different workflow:


You could press &#x2318;+` to cycle all the windows of the same application.
Note: this is not the apostrophe key, it's the backtick key.
Non-shifted tilde ~ left of z on a UK keyboard, left of 1 on US.
Try App Exposé:


Trackpad
System Preferences &#x2192; Trackpad &#x2192; More Gestures &#x2192; App Exposé to configure your preferred gesture.
Keyboard
Press F10



I understand this is not a precise answer to your question, but I believe that switching from Win/Linux to Mac OS, involves some adaptation.