@User Thank you for the question, I have added a specific example in the xschem source distribution (
examples/test_extracted_netlist.sch), since this is being asked by more users. Basically you draw your circuit as usual, but instead of drawing the circuit implementation of a sub block (symbol) you import its netlist (without the .subckt and .ends lines). The symbol schematic defines only the I/O pins.