Mann's sexuality and his attitudes towards it are extremely complex - and the complexities are inherited in the figure of Aschenbach. Mann had lived through a series of (almost certainly unconsummated) relationships with young men.
When I'm writing, I think about the garden, and when I'm in the garden I think about writing. I do a lot of writing by putting something in the ground.