Sorry for the very late reply. For Steam at least, you just need to bind this event and check the boolean to see whether it was opened or closed: ISteamFriends Interface (Steamworks Documentation)
I’m still trying to figure this out for the Microsoft GDK…