sentence1: As I ran out to the tennis court a few moments later, I had to pass the open boudoir window, and was unable to help overhearing the following scrap of dialogue. 
sentence2: As I passed by the boudoir window, I purposefully stopped so I could listen to the dialogue.