Fetching details from the dictionary...

to lean against; to recline on; to lean on
to rely on; to depend on
疲れて廊下の壁に寄り掛かってしばらく休んでいた。
I was resting, leaning against the wall.
他人に寄り掛かってばかりはいられない。
You can't always rely on others.
映画を見ていると彼女は眠くなって私の肩に寄り掛かった。
She leaned on my shoulder.