It’s Dark. Not Ghost type. It technically shouldn’t be able to to through walls, I know many other Dark types can’t.
Pokémon mystery dungeon decides if Pokémon can go through walls based on design, not actual typing or classification.