public static withLayout(layout as Object) as Container:
Creates a container already configured with a layout.
panel = Container.withLayout(HBoxLayout(spacing=8))