quartz: Add missing g_object_ref
A g_object_ref() call was missing, sometimes causing crashes during drag-and-drop operations. The matching g_object_unref() is at gdk/gdkdnd.c:261.
The logic in this function is still wrong--it finds the wrong GdkWindow under some circumstances--but this commit fixes the crash.
Part of #1840.