Oh, now the ending makes sense. Marisa managed to leverage Mary's ability to cross the border with Renko to allow her to come back to Gensokyo once she'd gotten what she wanted from the outside. If you go by the theory that Yukari is a post-human Mary, her comment makes sense since only her power and Reimu's can make a hole in the barrier to pass through.