Forms 2023 version- How to get a close confirm pop up when user closes using window X icon?

In the latest forms, I can select No for ‘Show Window Frame’ property. But that also takes away the ability to minimize/ maximize window or moving window around.