The flag is for the FileOpenDialog itself. So more like (depending on version of KiXforms) this example from KiXomatic...

code:
$dlgOpen = $Form.FileOpenDialog("Open File",@SCRIPTDIR,,"KiX Files|*.kix|All Files|*.*",4)

...where the last property (e.g. "4") is the flag.