Dialogs can be used to ask a user for a confirmation, or to notify or warn the user with a custom message.