Opens a dialog with a message requesting the user to accept or cancel. It returns true if the user accepted.