docs: def getWindowByPID(self, pid, order=0):
          """ Returns a handle for the first window that matches the provided PID """
          for w in self._get_window_list():
              if "kCGWindowOwnerPID" in w and w["kCGWindowOwnerPID"] == pid:
                  # Matches - make sure we get it in the correct order
                  if order == 0:
                      return w["kCGWindowNumber"]
                  else:
                      order -= 1
          raise OSError("Could not find window for PID {} at index {}".format(pid, order))