Is your problem that you want the shutter portion of window (green box in both pics) to take damage, whether it's open or shut? In that case, you might have to make it a multidim block 2 m wide, but then you'd have the problem of hits to the area next to the window delivering damage to the shutter even when it's closed. At work at the moment so I can't test it, but I'm pretty sure vanilla doors work the way you have it above--in closed position, you batter the door down, but in open position, you have to target the frame to destroy it.