You can use a Vertical layout followed by a Horizontal layout to get a centered Rect.
Then you can use this method to draw any widget centered on the containing area.
A common use case for this feature is to create a popup style dialog block. For this, typically,
you’ll want to Clear the popup area before rendering your content to it. The following is an
example of how you might do that: