Many protected bike lane designs make dooring impossible
If they don't then there's also probably some nuance with how existing (anti) dooring laws are written, since many focus on the side of a vehicle next to traffic and bicycles may not always be defined as traffic