A difference between googles and a windshield is:

Googles will protect your eyes from the wind, but most windshields will not. A windshield is not an adequate substitute for goggles or a face shield.
DMV Writen Test Logo