Barricades are allowed on both sides of a door/window. For doors, barricades absorb all damage before the door takes any, to stop the door being destroyed before the barricades. For windows, a barricade absorbs damage only when it is between the attacker and the window. When removing a barricade, one plank at a time is removed.
It was easier to add padlock the doors built =/