Implement SubWindow::open and ::close.