How to add io ports to GoBoxNode

Is it possible to add input & output ports to a GoBoxNode object? Any example?
I’m looking at the InfoNode in Demo1 sample and was trying to add some ports to it.

Thanks for your help!

Did you want there to be some specific visible ports at particular locations for there to be connections?
Yes, you can just allocate one or more GoPorts, initialize them (including the Size and Position), and Add them to the node.
If you need to worry about the node changing size, you’ll also need to override LayoutChildren, to update the location of those additional ports. You can look at several of the example node classes, such as PinNode in Demo1, for an example of how to do this.