How do you make a custom confirmation dialogue using PanelContainer node?

Godot Version



There are various reasons why I would prefer to use a PanelContainer node over a ConfirmationDialogue. But the main reason is I will have more freedom to the design. Also how do you go about preventing the user from exiting the window via alt+F4 or exit button before showing the popup confirmation?