How do I connect a pin to the top level?

Right click the pin and choose Promote to Top Level.

For multiple pins, select all the pins you want to promote, right click one of the pins, and choose Promote to Top Level. All your selected pins will be promoted to the top level.