How to make ports appear outside the selected node?

A post was split to a new topic: Node template port positioning