docs: public static Window showXML(Document document, BaseUIComponent parent) {
          Map<String, Object> args = Collections.singletonMap("document", document);
          boolean modal = parent == null;
          Window dialog = PopupDialog.show(XMLConstants.VIEW_DIALOG, args, modal, modal, modal, null);
          
          if (parent != null) {
              dialog.setParent(parent);
          }
          
          return dialog;
      }