The open function of the DialogService is used to open a Dialog. First parameter is the component to load and second one is the configuration object to customize the Dialog.
The component can also be loaded asynchronously, this approach is useful in conditional cases and to improve initial load times as well.