Richard has expressed what Betty Azar states clearly in Chart 13-6, p. 274 in her advanced text*:
"Whose usually modifies people, but it may also be used to modify things, as in (c):
Mr. Catt has a painting. Its value is inestimable. =
(c)Mr. Catt has a painting whose value is inestimable."
I have a suggestion for some sentences about things when you don't want to use either "in (or another preposition) which" or "whose."
"¢ That's the book with the ripped-out pages.
"¢ Those are the trees with the roots that people seek to cure hair loss.
These sentences are less formal than the ones with :"whose," and even with sentences that have a preposition + "which."
*Understanding and Using English Grammar, Third Edition, by Betty Azar. Longman 2002