If after performing my namaz maghrib , I saw that we can see me through the window glass.

But the glass, was not in front of me but on the side.

My namaz magrib still valid? I just covered the glass and continue with Isha

Yes it is fine
It is better not to pray anywhere where there is a reflection but prayer is valid