Time-resolved spontaneous emission beyond the doorway–window approximation