[TIMOB-16957](3.3.x) Fixed popover window memory leak and focus/blur events

Back port from #5878