Tesla's dog mode does this. Draining the battery isn't really something to worry about; AC uses <300 watts over long periods (turns on and off at <1 kW). Leaving it on for 8+ hours you're talking about <5% capacity loss, at a cost of <50 cents. For short trips you could leave the AC on full blast without even noticing a drop.