Writers are lectured to write what they know. If Tracy Chevalier had done that, there would be no Girl With A Pearl Earring or any fiction set in another time or place.
An inner and outer knowledge, a self-knowledge that translates into the voice of the narrator, who is the, of course, the girl with a pearl earring.