<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

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_window