An example is available in the SysML section, the same principles of inheritance of structure apply to UML and SysML in Magicdraw, Just use UML Composite Structure Diagrams with regular UML ports instead of SysML Internal Block Diagrams with SysML flowports.
