Adds a child container to this container.
The child container will only be added to the hierarchy if, or when, it contains some children.