Complex sentence: She discovers him and they struggle, until Brandon comes home, however, Derek flees out the window.
Split into simpler sentences: She discovers him and they struggle. When Brandon returns to Jamie's home, however, Derek flees out the window.