Automatically create a hidden window for messages if necessary