In the red/blue version of pokemon it says this about haunter: "Haunter can pass through solid walls. It is because of this that it is believed it is from another dimension." A fact I can confirm for you, personally.
Check out this story's sister fic.
This is part of the 12 days of christmas, head over here to keep track of all the cool stuff coming down the pipes. If you want to ensure I can afford to keep doing stuff like this, consider backing me over on Subscribestar or Patreon.