Due to an upstream bug in JOGL, we have to close the window when opening a file dialog. There's nothing we can do about it, but we'll close this issue once we can remove this workaround for the upstream bug.
More about the original bug can be found here: #3775