VirtualBox, unfortunately, does not support features that would allow guest OS to sleep or hibernate. So there is no way to enable hibernation in the guest Windows system.
But unless you specifically need to use the hibernation in the guest system (e.g. for testing), there's really no need for that as VirtualBox itself has the similar feature. Read below for details.
If someone is looking for the same effect but without the need to actually use the Windows hibernation, VirtualBox has a feature called Save the machine state. It simply freezes the guest system and saves RAM and VM state to the disk. It's done by VirtualBox, not Windows. When the guest system is started again and its state is restored, it won't even notice it has been interrupted.
You can trigger it by simply clicking on VM window's close button, selecting Save the machine state and confirming with OK. Or open VM's context menu in VirtualBox, open Close submenu and select Save state. It has also keyboard shortcut, in VirtualBox window it's Ctrl + V and in VM's window it's Host key + Q.
This should work with any guest system theoretically, even if it itself doesn't support the hibernation.
You can also check the section 1.8.6. Saving the state of the machine of VirtualBox's user manual.