USB_VBUS is not an alternate function, it is an additionnal function which is always enabled. If configured as an alternate function, it will draw current from VBUS.
README
This example implements a USB Mass Storage Class (MSC) device to demonstrate the use of the USB device stack.