This option applies ONLY to Inline nodes, not Factory and is possible ONLY if the graph is modifiable, not a read-only one.
To add Input or Output ports to your node:
Right-click on the Title part of the node, and from Add node submenu select the type of the port for addition to your node (Input or Output).