Is there a service class that implements the pop-up dialog box?

I want to achieve a pop-up dialog box, let the user to confirm, but don’t want to use the electron remote. The dialog. ShowMessageBoxSync method

You can use ConfirmDialog.

const result = await new ConfirmDialog({
    msg: 'Your message',
    title: 'Some title',
    ok: 'Yes',
    cancel: 'No'
}).open();