The child component has to be a descendant, not necessarily a child in the DOM, see for example documentation for method addChildAt
. So it's ok to call addChild(child, false) in this case.
Additionally, you can override getContentElement
method of the parent component to return the element to which child components should be added, in this case you can if necessary use addChild(child, true) instead of decorating.