Note that the Diagram widget is in the community technology preview (CTP) development stage.
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.