public final WorkbenchDialog showConfirmationDialog(String title,
                                                        String message,
                                                        Consumer<ButtonType> onResult) {
        WorkbenchDialog dialog =
                WorkbenchDialog.builder(title, message, Type.CONFIRMATION).onResult(onResult).build();
        return showDialog(dialog);
    }
Shows a confirmation dialog in the view.

@param title    of the dialog
@param message  of the dialog
@param onResult the action to perform when a button of the dialog was pressed, providing the
                {@link ButtonType} that was pressed
@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}.
workbenchfx-core/src/main/java/com/dlsc/workbenchfx/Workbench.java