<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.1.25080.5" />

UIPermissionWindow

public enum UIPermissionWindow
Specifies the type of windows that code is allowed to use.
namespace System.Security.Permissions { [Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] public enum UIPermissionWindow { AllWindows = 3, NoWindows = 0, SafeSubWindows = 1, SafeTopLevelWindows = 2 } }