How Fourier transform be able to deal with transients?
It's important to use the right sort of tool for the job. A hammer is defined to put in nails. If you want to turn screws, use a screwdriver.

The Discrete Fourier Transform (DFT), of which the Fast Fourier Transform (FFT) calculates exactly the same result, but far faster, is defined only over repetitive signals. That is, the result it produces is exactly the same (with appropriate re-labelling) as if you had taken the signal input to the FFT, and concatenated it with itself.

This cyclic feature means that the FFT is a natural fit for repetitive waveforms. If the input sample contains an exact integer number of cycles, then it can be extended indefinitely by repetition, and look exactly the same as the original.

The technique of windowing a signal before FFT is used to reduce the problems that occur when it's used to transform a non-cyclic waveform. For example, take a one-second sample of a continuous 10.5Hz signal. If this sample is concatenated with itself, you get a half-cycle step, which messes with what you would hope to see doing a spectrum analysis. Note that it doesn't make the transform wrong, it just means that what you got is not what you naively hoped to get. If you hit the nail sideways, you get a bent rather than a driven nail, the hammer is still working just fine, doing exactly what it's defined to do.

The window reduces the signal amplitude at the beginning and end of the sample to zero, which means it can be cyclically extended. The window changes the signal, so the spectrum will change. However, it changes in a known and easily calculable way, which the FFT doesn't further change.

When used to transform a transient signal, we need to ensure that the signal sample starts and ends at zero. Then the sample meets the cyclic requirement, and the FFT will give you exactly what you would expect if you had a train of transient signals, repeating every sample length. 

That's what the FFT does. If you don't want the transform of a train of signals, then the FFT is not the hammer to use. You still have a lot of freedom to adjust this train of signals to your taste, just as you can choose what window to use when transforming a continuous signal. You can make the impulses repeat less often by increasing the time length of the sample for instance.