Shortly after the young woman walks into Howard Gurr’s psychology practice, she is taken to a beach and encouraged to relax. She is helped to feel calm and let go of her worries. Dr. Gurr then changes course, bringing his patient to a restaurant or other place that is a source of anxiety.

Dr. Gurr doesn’t change offices every day. He’s a therapist who is using virtual-reality scenery to tackle the anxieties and body-image issues of patients with eating disorders like anorexia, bulimia and binge eating.

To...