It will be useless to check the source window on the destination side, it's at the moment always NULL. Fetch the display from the device instead, which will be set for every GdkDragContext.