ConfirmDialog is controlled via the ConfirmationService that needs to be installed as an application plugin.
$confirm is available as a property in the application instance for Options API. The service can be injected with the useConfirm function for Composition API.