pub fn centered(viewport: Rect, w: f64, h: f64) -> Rect
A w × h box centred in viewport (where a dialog goes).
w × h
viewport
dialog