She was absorbed in a book.

Literal

She [topic-は] book [in-に] absorbed had-become.

夢中になる literally means 'to become inside a dream' — a vivid metaphor for total immersion. The ~ていた marks that this absorption was ongoing at the time being described.