Difference between applying a window to a whole signal and frames.
Each frame to be FFT’d needs to be individually windowed to avoid rectangular window artifacts (sometimes called “leakage”) due to the finite length of the FFT.

The frame length you choose depends on the time-frequency resolution trade-off needed to extract the features in which you are interested.