/Engine/Source/Editor/UnrealEd/Public/Toolkits/FConsoleCommandExecutor.h
Some scripting languages use the default "open console" hot-key (~) in their code, so these should return false.
virtual bool AllowHotKeyClose() const