This demo shows the Diagram UI component's capability to wrap shapes into containers. A container is a special shape with the following features:
To wrap a shape, just drop it into a container.