code: def active_pt_window(self):
          " The active prompt_toolkit layout Window. "
          if self.active_tab:
              w = self.active_tab.active_window
              if w:
                  return w.pt_windof active_pt_window(self):
          " The active prompt_toolkit layout Window. "
          if self.active_tab:
              w = self.active_tab.active_window
              if w:
                  return w.pt_window
docs: The active prompt_toolkit layout Window.