After an interesting recent answer, I'm doing some research on proper DFT normalization for sinusoidal peak estimation. It's clear that to get the correct amplitude from DFT peaks we need to normalize by the window gain \begin{equation} S_w \triangleq \sum_{n=0}^{N-1} w[k] \end{equation} Which becomes $S_w = N$ for the rect window.
Now I'd like to find some rough demonstration, Harris has one (see equations 12 and 13 in the article below), but he chooses the easiest path by making exponentials cancel out. Well he actually does a pretty good job, it's me that thought it could be inferred to some more general relation.
For the rectangular window I've come up with this. Let's say we have a sampled analytic sinusoidal signal $x[n]$, with frequency of $m/N$ cycles per sample (or $m$ cycles in $N$ samples), and compute the DFT $X[k]$
\begin{equation} x[n] = A \ e^{j 2\pi m n/N} \end{equation}
\begin{align} X[k] & = A\sum_{n=0}^{N-1}e^{j \frac{2\pi n}{N} m} e^{-j \frac{2\pi n}{N} k} \\ \\ & = A\sum_{n=0}^{N-1}e^{-j \frac{2\pi n}{N} (k-m)}\notag \\ \\ & = A \ \dfrac{1-e^{-j2\pi(k-m)}}{1-e^{-j\frac{2\pi}{N}(k-m)}} \\ \\ & = AN\delta \left[ k-m\right] \end{align}
where $\delta[k]$ is the Kronecker delta. To get the correct amplitude in freq space we need to divide by $N$.
Now, let's say we have a windowed signal, let me call it $x[n]$ again
\begin{equation} x[n] = w[n] \ A \ e^{j 2\pi m n/N} \end{equation}
and its transform, again overloading notation
\begin{equation} X[k] = A\sum_{n=0}^{N-1} w[n] e^{-j \frac{2\pi n}{N} (k-m)} \end{equation}
From here I'm not sure how to proceed, guess the result should be $$ \require{cancel}\cancel{X[k] \overset{?}{=} A \ S_w \ \delta[k-m]} $$
Edit: after some discussion with Robert I believe the previous equation is just wrong. It works for the rectangular window only, while for the other windows the only thing we can say is about the peak $k=m$, which can be easily demonstrated just from the sum.
F. J. Harris - On the Use of Windows for Harmonic Analysis with the Discrete Fourier Transform