Zombies will not attack barricades on the opposite side of the window they are (aka, if they have to reach through the window to get to them) Tested this a few times and it was repeatable, and even reversible, where zombies cannot attack barricades on the inside of the house when they are on the outside. (Only mod enabled was a cheat menu to spawn in zombies to test it. Tested it with "attack player constructs" both on and off.
This works with all barricades types, as far as I know. Tested with planks and metal bars, could not attract them onto the metal sheet, however.