What to use to bond rear glass window to top material?

View attachment rear window help.jpg

The top is peeling away from my glass window - but the top is still in pretty good condition. What can I use as a bonding agent to attach the top back to the glass?

Thank you in advance!