code: def move_window(self, destination="", session=None):
          
          session = session or self.get('session_id')
          proc = self.cmd(
              'move-window',
              '-s%s:%s' % (self.get('session_id'), self.index),
              '-t%s:%s' % (session, destination),
          )
  
          if proc.stderr:
              raise exc.LibTmuxException(proc.stderr)
  
          self.server._update_windows()
docs: Move the current :class:`Window` object ``$ tmux move-window``.
  
          Parameters
          ----------
          destination : str, optional
              the ``target window`` or index to move the window to, default:
              empty string
          session : str, optional
              the ``target session`` or index to move the window to, default:
              current session.