This method of the UIPermission Class determines whether the permission object indicates permission to create top-level windows.
public boolean getTopLevelWindowCreationAllowed();
Returns true if the permission object indicates permission to create top-level windows; otherwise, returns false.