Focus events have been dropped in 2016.03.0 and added back as part of #19697. There is a minor issue with the implementation that has been discovered by the rigorous tests for our viewer.
Could you add an extra check in RenderingManager::SetRenderWindowFocus so that the event is not sent out if the focus is already on the same window?