A single shared dialog instance is required in the application, ideal location would be defining it once at the main application template.
A dynamic dialog is controlled via the DialogService that needs to be installed as an application plugin.
The service is available with the useDialog function for Composition API or using the $dialog property of the application for Options API.