I don't think there's any great trick to it Ulco. Using Photoshop's Lens Blur filter you just adjust the Blur Focal Distance and you should see it shift, and at certain settings you ought to see front defocus+back defocus and a middleground in focus...
- Oshyan