Draw objects only when there is a TApplication