I added a door that is close to a security camera. The camera couldn’t see the player through the door thanks to the door’s collision mask, but the light still shined through the door. Adding a LightOccluder2D fixes the problem.
It’s also pretty cool to see the light spread into the hallway when the door opens, particularly if my player is standing there and the opening door causes the light to turn red.