<PackageReference Include="System.Security.Permissions" Version="9.0.6" />

FileDialogPermissionAccess

Specifies the type of access to files allowed through the File dialog boxes.
None = 0

No access to files through the File dialog boxes.

Open = 1

Ability to open files through the File dialog boxes.

Ability to open and save files through the File dialog boxes.

Save = 2

Ability to save files through the File dialog boxes.