If it helps, an easy way to reproduce this is to run gedit, minimize the window, and then run sudo gedit.
If it helps, an easy way to reproduce this is to run gedit, minimize the window, and then run sudo gedit.