code: def focusedWindow(cls):
          
          x, y, w, h = PlatformManager.getWindowRect(PlatformManager.getForegroundWindow())
          return Region(x, y, w, h)
docs: Returns a Region corresponding to whatever window is in the foreground