Beyond using the door opening noise as an alert when someone else enters, you can close all the doors of a settlement you looted so that people will think it’s unlooted, and meanwhile you’re camping on the ridge with a sniper... I’ve definitely used closed doors as bait