I also have a knocking/rattling sound outside the car in the situations you speak of. I don't normally hear it unless the windows are down. When I had the interior stripped down to the sheet metal (I was running wires and installing Dynamat), it was also very noticeable. I've always assumed it was a heat shield, and there is no knock sensor code stored in my computer.