code: def run_in_window(target, on_destroy=gtk.main_quit):
      
      w = _get_in_window(target)
      if on_destroy:
          w.connect('destroy', on_destroy)
      w.resize(500, 400)
      w.move(100, 100)
      w.show_all()
      gtk.main()
docs: Run a widget, or a delegate in a Window