I'd say they use a similar technique to that employed in the mounting of bonsai on rocks - where no natural cavity exists, they've carve out one sufficient to hold the soil necessary to sustain a plant.
If there's no drainage provided it'd be a tricky juggling-act to keep the right amount of water up to the plant - it's definitely a project for the dedicated enthusiast.