Given a hypothetical programmable dream machine, it could be used for therapy. Say you were afraid of heights. You (or your therapist) programs a series of dreams in which you overcome your fears through increasingly high-up experiences like stilts, springboard diving, a flying fox and hang gliding. Or say you never got over the loss of your childhood pet, and it's causing you stress now. Program a dream or two that unite you with your pet, but you say goodbye. The possibilities are endless, though some of them are undoubtedly disturbing, too.
Mokalus of Borg
PS - I'd much rather some people express their urges in dreams than in reality.
PPS - As long as that's where it stays.