Somehow, the 'movebybackground' declare doesn't work in REALStudio 2012R2.1, but works just fine in the latest Xojo release.
Added a note about it to NSWindow.