Virtual Reality Exposure Therapy (VRET) focuses on changing your response to the object or situation that you fear. Gradual, repeated exposure to the source of your specific obsessive-compulsive disorder and the related thoughts, feelings and sensations may help you learn to manage your anxiety.
For example, if you've anxiety of public restrooms, your therapy may progress from simply looking at a public restroom, to going near a public restroom, to stepping into a public restroom.