Windows has already grown this "virtual machine", since it has different power setting depending on the power source: battery or plugged in.
I doesn't seem to absurd to not make the laptop suspend when the lid is closed while plugged in, since it could use an external display and keyboard. But when it's not plugged in you don't want it chugging along in your backpack, getting fried due to the lack of ventilation.