$dialog is available as a property in the application instance for Options API. The service can be injected with the useDialog function for Composition API.