Forlornly

[for-lorn-lee] (adverb)

In a sad, lonely, or hopeless manner; with a feeling of abandonment or desolation.

She sat by the window, gazing forlornly at the rain-soaked streets outside.