I think this happens because the Windows GetMessage() function blocks while the window is being moved. It might be possible to work around this in Panda’s C++ message loop, but I’ve never looked into it.
If you find a way to make a work, we’ll be happy to incorporate your patch.
David