In Windows, if I double click the top left corner of a window, it closes the window.
This feature has been in Windows for quite long time (98/XP/7).
Is there any way to disable this behavior?
If you're doing your own application and you want to disable that default behaviour check this: http://blogs.msdn.com/b/oldnewthing/archive/2010/06/04/10019758.aspx
If you're not developing your own application the solutions seems to be impossible because it's a standard behaviour from Windows 2.0 (as I remember).
A workaround that might help you: reduce the interval for mouse clicks so that an accidental second click does not close the window. If you're writing your own program, of course, you control that behavior -- for example, use a different window type for the app's main window, or intercept mouse clicks.