it's vanilla MC, zombies tend to stick just barely through the door, especially when there's other zombies or mobs pushing them further into the door. skills hit mobs inside doors as well because it's considered that there's no barrier between you and the mob. however, killing mobs like this is considered exploiting, and is illegal.