Tā jiǔjiǔ de wàng zhe chuāngwài, xiànrù le chénsī.
She gazed out the window for a long time, lost in thought.
Tips
memory
久 means 'a long time', and repeating it (久久) intensifies the meaning, the way you might draw out a word in English: 'loooong time'. Reduplication for emphasis is a natural Mandarin pattern.