If you have an external keyboard & mouse attached, and are plugged into a/c, it's automatic.
With the lid closed, just wake the MBP with the mouse or keyboard (they can both be Bluetooth, if you like). The external display will become the main display.