Fixing high DPI bug (auth window height exceeding screen height)

You can move  this.ownerWindow = null; before "IWin32Window window = ownerWindow as IWin32Window;"
change this else to:
else if (ownerWindow != null)
{
               throw new AdalException(AdalError.InvalidOwnerWindowType,
                    "Invalid owner window type. Expected types are IWin32Window or IntPtr (for window handle).");
 }