So I take it this Mary is supposed to be Maribel Hearn?
^ In this particular occasion, Mary here is a projection of Yukari herself and not directly resemble the real Maribel despite the similar appearance.
Although it's clearly makes no sense why Yukari here are luring both Yumemi and Chiyuri to the present (Windows) era of Gensokyo through a dreams and to make them both aware of the many uncommon sense Gensokyo has, which is the sort of build-up for the TH03 lore in which Yumemi is to pursuing a magic through science as her goal.