Overview
"The Window" is the tenth episode of the fifth season of the CBS situation comedy How I Met Your Mother and 98th episode overall. It aired on Monday, December 7, 2009.
Plot
Marshall stops by Ted's apartment with a box of childhood memorabilia from his mother. Ted receives a call from an old woman telling him "the window is open", and races over to a woman's apartment a few blocks away. Later at MacLaren's, Ted explains that "the window" was the window of opportunity to date a woman named Maggie (JoAnna Garcia), who followed up every long-term relationship with a very short break, and then an even-longer relationship.
Ted had known Maggie, the "ultimate girl next door", since college, but she has always quickly found a new boyfriend after being single. After several failed attempts Ted begged Maggie's neighbor, Mrs. Douglas, to tell him the moment she was single again. Ted arranges to meet her at the bar, and is determined not to screw up this time to make sure she comes in contact with as few other men as possible, even ordering her a taxi with a female driver. Robin reminds Ted he still has to teach his evening class, and he is forced to leave Maggie with Marshall and Lily.
From Wikipedia (CC BY-SA 4.0).