code: void onClickNew() {
  
          try {
              CmsObject cms = A_CmsUI.getCmsObject();
  
              CmsResource folderRes = cms.readResource(m_currentFolder, CmsResourceFilter.IGNORE_EXPIRATION);
              I_CmsDialogContext newDialogContext = getDialogContext();
  
              CmsNewDialog newDialog = new CmsNewDialog(folderRes, newDialogContext);
              newDialogContext.start(
                  CmsVaadinUtils.getMessageText(org.opencms.ui.Messages.GUI_NEWRESOURCEDIALOG_TITLE_0),
                  newDialog);
  
          } catch (Exception e) {
              LOG.error(e.getLocalizedMessage(), e);
          }
      }
docs: Opens the new resource dialog.<p>