When I have done this -in a rolling toolbox/ work center- I used SO cord that hung in the space behind the drawers. Great attention was given to preventing abrasion, pinch points. FWIW, wire made for this sort of thing is called "festoon" cable.
I have also seen hair-dryer appliances that incorporated the receptacle in the "basket" that held the dryer.