public final WorkbenchDialog showDialog(WorkbenchDialog dialog) {
        DialogControl dialogControl = dialog.getDialogControl();
        dialogControl.setWorkbench(this);
        showOverlay(dialogControl, dialog.isBlocking());
        return dialog;
    }
Shows a {@link WorkbenchDialog} in the view.

@param dialog to be shown
@return the {@link WorkbenchDialog}, which will be shown
@implNote If the user closes a non-blocking dialog by clicking on the {@link GlassPane},
the result will be {@link ButtonType#CANCEL}.
All dialogs are non-blocking by default. If you want to change this behavior, use
{@link WorkbenchDialog#builder} to create a dialog and show it using
{@link Workbench#showDialog(WorkbenchDialog)}.
workbenchfx-core/src/main/java/com/dlsc/workbenchfx/Workbench.java