Create pane from window