Maya is very rarely used in isolation, for example you may also be using gimp/photoshop for textures, shake/after effects for compositing, prman (renderman) for rendering etc. It is therefore of great importance to be able to create simple file dialogs to locate files.
If you look in the mel documentation that comes with Maya, two procedures are listed to create a file dialog, fileDialog and fileBrowserDialog. Unfortunately they are both rubbish. Luckily, hidden away in a dark undocumented corner of Maya is a little script called fileBrowser.mel.
It turns out that this undocumented command is what we want for file dialogs...