How does it work? It does not. The OFV just stops whatever air that is in the cabin from getting out (to a degree anyway)
As for the ram air in / out doors...
I actually know someone who thought that the ram air in actually provided the cabin air pressure.