1, acquire a group of features you want to show in the infoWindow (through query, identify, etc),
2, Create an empty list, loop through features and set an infoTemplate with title and content to each feature using "feature.setInfoTemplate(infoTemplate)", push each feature into the list.
3, map.infoWindow.setFeatures(your list of features)
4,show your infoWindow.