code: public static void openDialogInWindow(final I_Callback callback, String windowCaption) {
  
          final Window window = CmsBasicDialog.prepareWindow();
          window.setCaption(windowCaption);
          CmsSiteSelectDialog dialog = new CmsSiteSelectDialog();
          window.setContent(dialog);
          dialog.setCallback(new I_Callback() {
  
              public void onCancel() {
  
                  window.close();
                  callback.onCancel();
  
              }
  
              public void onSiteSelect(String site) {
  
                  window.close();
                  callback.onSiteSelect(site);
              }
          });
          A_CmsUI.get().addWindow(window);
      }
docs: Opens the site selection dialog in a window.<p>
  
  @param callback the callback to call when the dialog finishes
  @param windowCaption the window caption