You can use a Vertical layout followed by a Horizontal layout to get a centered Rect.
Then you can use it to draw any widget like this:
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: