To put oneself in someone else's shoes
Means imagining yourself in another person's situation to better understand their feelings or perspective. Identical to the English idiom.
Try to put yourself in his shoes before judging him.
If you put yourself in my shoes, you'd understand why I reacted that way.
—I don't understand it. —Put yourself in her shoes for a moment.