There are a few ways you can hang curtains from the ceiling in a loft bedroom:
Use a curtain rod that is long enough to span the distance from the ceiling to the floor.
Hang the curtains from rings that are attached to a track or rod that is mounted on the ceiling.
Use clips or hooks to attach the curtains directly to the ceiling.