I've put together a short tutorial on how to make a draggable peg. I'm not sure how other people do it, so my guess is that this version is pretty unconventional. No music, get your own. And if you want to read the tiny text, you can hit Zoom In several times.
Okay, someone keeps downvoting this. Could you at least write a review, whoever you are?