This supports the case where the PortObject is either a child of this port's node, or is the whole node itself. If there is no PortObject or if the Style is GoPortStyle.Object, we just return the default result which assumes the port is just a rectangle.