Working on one of the features #4059, assume that query tool is open in a new tab, and the main application window is closed, with the help of Nidhi, I was able to write a warning popup message as given below:
Can we go ahead with this message or else could you please suggest if you have any?
"The pgAdmin browser window has been closed and the connection to the server lost. Please close this window and open a new pgAdmin session."