dlg_open function

Modal dialog to select a file.