Framework::refresh_opener, is it possible to refresh the parent pop up window instead of the main app window?

Framework::refresh_opener always refreshes the main window because the refresh is carried out by the framework object:

https://github.com/EGroupware/egroupware/blob/master/api/js/jsapi/egw_message.js#L351

Only way to avoid that would be implementing an observer in your app.js:
https://github.com/EGroupware/egroupware/blob/master/api/js/jsapi/egw_message.js#L337

If your observer returns true, the the frameworks refresh method is not called. Obviously your observer should carry out the wanted refresh, as it is not happening otherwise.

Be aware that observer methods get called for refresh requests of other apps too!

Ralf