This demo shows the Diagram widget'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.