Windows disappear when losing focus
This is coming from the fact that I use a hotkey on my profile, and I always forgot to check the “Pin hotkey window (stays open on loss of keyboard focus)” and uncheck “Floating window options”
Source : https://superuser.com/questions/1100918/how-can-i-prevent-the-iterm2-hotkey-window-from-losing-focus