She opened the window to let fresh air into the room.
Literal
She [topic-は] room [in-に] fresh air [subject-が] enter [so that-ように] window [object-を] opened.
~ように marks purpose with a non-volitional verb — the air 'entering' is not a deliberate act, so ように is used rather than ために. A textbook example of this purpose distinction.