DUI in Massachusetts is called OUI, for Operating Under the Influence (of alcohol or drugs). Regardless of the name used, DUI laws across the country are pretty similar.
Laws regarding what you have to do when a police officer stops your car do vary greatly by state, and Massachusetts is generally better for the Fair DUI flyer than some others.
You are not required to hand over or surrender your license or other documents, though you should still show them to police through the closed window if they request it. You are also not required to sign tickets so you don’t have to open your window for that either.
There is a state statute that requires handing over your license and signing your name, but the penalty for refusal is only a $100 fine. That consequence is much less than the risk of a false DUI arrest.
Massachusetts does allow checkpoints.
The pdf of the Fair DUI flyer for Massachusetts is below: