To add Min/Max icons look at:
org.eclipse.gmf.runtime.diagram.ui.internal.figures.CollapseFigure.fillShape()
You also have to create your own CollapseHandle.
I had many side effects when I tried to add the handle to a compartment.
I'll try and add it to the outer node.