pensively, thoughtfully
lost in thought, pensively, in a pensive mood
Она сидела в задумчивости у окна.
She sat pensively by the window.