Did you manage to resolve the issue?
Multiple users reported this same issue on their MacBook Pro.
The Power button initiates this pop-up window, so if you see it constantly, it might be due to a faulty Power button. For example, it might get stuck and prompt this message over and over again. Did you check the Power button?
Also, go to System Preferences > Display (Options) and set the Display Power Button to "Does nothing." One user reported that the heat from the additional display was triggering the button on the right side of the monitor and constantly tried to put the computer to sleep.
Also, the dialog box can be opened by using the Control-Eject or Control-Power shortcut on your Mac. If you use a shortcut that involves using the Power button, a longer click opens this shutdown window.
The issue with the shutdown pop-up is most likely related to incorrect work or the use of the Power button. However, it is always a good idea to check your Mac for malware. Remove any unknown applications and browser extensions, check for suspicious login items (System Preferences>Users&Groups>Login items) and remove unknown Profiles (System Preferences > Profiles)