She looked sad and lonely.

Literal

She [topic-は] sad [then-て] lonely-looking was.

悲しくて寂しそうだった — 悲しくて chains the i-adjective to the next predicate. 寂しそう uses ~そう for outward appearance.