Start here
Libraries
Modal dialog widget.
Bases: Widget
Widget
Modal message box with title, body, and action buttons.
Show the dialog and grab modal pointer capture.
Hide the dialog and release modal pointer capture.
Paint the opaque scrim behind the card.
A full draw fills the whole screen; a child’s parent.draw(child.area) request fills just that sub-region with the scrim so the card’s children are not erased.
parent.draw(child.area)