Shape or textbox inside shape or textbox

Hi all

I need to create a complex diagram, I do not care doing it in Writer or Draw, in which I need to put shapes inside shapes or textboxes inside textboxes, or something similar. I need to have a structure of e.g. functions inside modules inside files, with connectors and arrows for the inner elements, but in which when I move a container element, the contained element moves as well.

Thanks