ole32: Move end-of-drag handling to a separate function.