Nothing prevents it technically really, but if you want to keep it LEGAL, then you can't.
Windows is licensed based on it being installed or not, not on if it's actually used or not. Having 2 copies installed, even if you never use them at the same time, means that you need 2 licenses to use them both legally.