The new value may be null, to simply remove the background shape.
Remarks
Instead of setting the shape after creating a node, you may find it easier to override the CreateShape method. The new shape will have its Center location, Selectable, Resizable, Reshapable, ResizesRealtime, and Shadowed properties copied from the old shape. Setting this property will also set the Port's PortObject to be the new shape.