Here is Hilbert standing guard at the patio door against any enemies who might storm the castle gates and invade his house. In this case, I believe that “enemies” mainly means Hopper, who is forced to jump over him if she wants to come in. Still, you never know what else might try to lead an assault on the food bowl. It’s best to be prepared.
