OD Selected Nodes to Compound takes the selected nodes in the open node editor, and puts them into a compound. The compound can be named upon creation. You will then have to connect the output in the actual compound.
Limitation: Currently, compounds inside compounds are not supported.