First of all Bogie played that scene that way because it fit the story. There was a dramatic reason why it made sense for Marlowe to walk into that store in that way - it was totally plot driven.
You can’t make that same sort of argument for the passage I cited.
Second of all I’m not saying that Chandler *was* gay. I’m just saying that the writing was - I don’t know - a certain way. At times In places. That’s all. Just a textual analysis is all. Your mileage may vary.