I'm not sure why Windows would have anything to do with it. An iMac, in target display mode, works like any other Thunderbolt monitor. The OS that the output computer is running does not matter as long as it supports Thunderbolt displays. Windows does support Thunderbolt displays.
I've never tried that config myself, but again, OS should not have anything to do with it.