Kind of. You can do it with Apple&#x27;s Accessibility APIs, but lately they&#x27;re making that harder and harder. Apps that use those APIs can&#x27;t be put on the app store, and there&#x27;s no automated way to give an app permissions to use Accessibility: the user has to go deep into the System Preferences panel to enable it. And even then, the APIs, which aren&#x27;t quite meant for window-managing, are very limited and sometimes don&#x27;t work like you&#x27;d want them to. I forget how specifically, but I&#x27;ve written about a dozen of them so far and it&#x27;s not a super pleasant experience. It&#x27;s a little nicer in Swift, because you get to wrap the ugly C APIs in Swift using generics.