JERUSALEM—Israel’s military offensive has turned much of northern Gaza into an uninhabitable moonscape. Whole neighborhoods have been erased. Homes, schools and hospitals have been blasted by airstrikes and scorched by tank fire. Some buildings are still standing, but most are battered shells. Nearly 1 million Palestinians have fled the north,…