code: def window(self, windowNum=0):
          
          if self._pid == -1:
              return None
          x,y,w,h = PlatformManager.getWindowRect(PlatformManager.getWindowByPID(self._pid, windowNum))
          return Region(x,y,w,h).clipRegionToScreen()
docs: Returns the region corresponding to the specified window of the app.
  
          Defaults to the first window found for the corresponding PID.