Allow closing modals by clicking outside
In designing modals, consider allowing users to close the window by clicking outside of it, but only when the context permits—meaning no crucial information will be lost. This feature enhances user experience by offering an intuitive way to exit, especially if the Close button isn't immediately obvious.
Many users instinctively click on the main window to return to it, so enabling this functionality aligns with common user behavior. However, be cautious when implementing this; ensure it's appropriate for the situation and doesn't disrupt the task at hand.

