suppose your original, infinitely long discrete-time sequence, $x[n]$ was defined in such a way that $x[n]=0$ for all $n>N$ and $n<0$. then the DTFT is:
$$\begin{align}
X(e^{j\omega}) &\triangleq \sum\limits_{n=-\infty}^{\infty} x[n] e^{-j \omega n} \\
&= \sum\limits_{n=0}^{N-1} x[n] e^{-j \omega n} \\
\end{align}$$
and one way (not the only way) of looking at the DFT evaluates that at $N$ discrete values of $\omega$:
$$\begin{align}
X[k] &= X(e^{j\omega}) \Bigg|_{\omega = \frac{2 \pi}{N}k} \\
&= \sum\limits_{n=0}^{N-1} x[n] e^{-j 2 \pi n k/N} \\
\end{align}$$
now, suppose we define another infinitely long discrete-time sequence, $x_1[n]$ in terms of the $x[n]$ above as
$$x_1[n] \triangleq \begin{cases}
\tfrac12 x[n] \qquad & \text{for } \ 0 \le n < N \\
\tfrac12 x[n-N] \qquad & \text{for } \ N \le n < 2N \\
0 \qquad & \text{otherwise} \\
\end{cases}$$
what is the DTFT?
$$\begin{align}
X_1(e^{j\omega}) &\triangleq \sum\limits_{n=-\infty}^{\infty} x_1[n] e^{-j \omega n} \\
&= \sum\limits_{n=0}^{2N-1} x_1[n] e^{-j \omega n} \\
&= \sum\limits_{n=0}^{N-1} x_1[n] e^{-j \omega n} + \sum\limits_{n=N}^{2N-1} x_1[n] e^{-j \omega n} \\
&= \sum\limits_{n=0}^{N-1} \tfrac12 x[n] e^{-j \omega n} + \sum\limits_{n=N}^{2N-1} \tfrac12 x[n-N] e^{-j \omega n} \\
&= \tfrac12 \sum\limits_{n=0}^{N-1} x[n] e^{-j \omega n} + \tfrac12\sum\limits_{n=0}^{N-1} x[n] e^{-j \omega (n+N)} \\
&= \tfrac12 \sum\limits_{n=0}^{N-1} x[n] e^{-j \omega n} + x[n] e^{-j \omega (n+N)} \\
&= \tfrac12 \sum\limits_{n=0}^{N-1} x[n] \big(e^{-j \omega n} + e^{-j \omega (n+N)}\big) \\
&= \sum\limits_{n=0}^{N-1} x[n] \ \tfrac12\big(1 + e^{-j \omega N}\big) \ e^{-j \omega n} \\
\end{align}$$
now what is this evaluated at the same $N$ frequencies?
$$\begin{align}
X_1(e^{j\omega}) \Bigg|_{\omega = \frac{2 \pi}{N}k} &= \sum\limits_{n=0}^{N-1} x[n] \ \tfrac12\big(1 + e^{-j \omega N}\big) \ e^{-j \omega n} \Bigg|_{\omega = \frac{2 \pi}{N}k} \\
&= \sum\limits_{n=0}^{N-1} x[n] \ \tfrac12\big(1 + e^{-j 2 \pi k / N}\big) \ e^{-j 2 \pi nk/N} \\
&= \sum\limits_{n=0}^{N-1} x[n] \ \tfrac12\big(1 + 1\big) \ e^{-j 2 \pi nk/N} \\
&= \sum\limits_{n=0}^{N-1} x[n] \ e^{-j 2 \pi nk/N} \\
&= X[k] \\
\end{align}$$
at those $N$ discrete frequencies, the two DTFTs, $X(e^{j\omega})$ and $X_1(e^{j\omega})$, evaluate to be exactly the same. but, in between those $N$ discrete frequencies, we do not expect $X(e^{j\omega})$ and $X_1(e^{j\omega})$ to be the same, because $x_1[n]$ and $x[n]$ are not the same for $-\infty < n < \infty$. so i do not know precisely what $X(e^{j\omega})$ would be between those discrete frequencies unless i make some assumptions about the nature of $x[n]$ outside the interval $0 \le n < N$.
if you make the assumption that $x[n]=0$ outside that interval, and there is no other windowing done to $x[n]$ inside that interval, then you're making the same assumption as Dirichlet in the so-called "Dirichlet kernel" and there is an explicit interpolation formula.
$$\begin{align}
\sum_{n=0}^{N-1} e^{j 2 \pi n f/N} &= \sum_{n=0}^{N-1} (e^{j 2 \pi f/N})^n \\
\\
&= \frac{ (e^{j 2 \pi f/N})^N - 1 }{e^{j 2 \pi f/N} - 1} \\
\\
&= \frac{ e^{j 2 \pi f} - 1 }{e^{j 2 \pi f/N} - 1} \\
\\
&= \frac{ e^{j \pi f} (e^{j \pi f} - e^{-j \pi f}) }{e^{j \pi f/N} (e^{j \pi f/N} - e^{-j \pi f/N}) } \\
\\
&= e^{j\pi(N-1)f/N}\frac{\sin(\pi f)}{\sin(\pi f/N)} \\
\end{align} $$
Now we know that when $f=0$ or an integer multiple of $N$ then $e^{j 2 \pi n f/N}=1$ and $$\sum_{n=0}^{N-1} e^{j 2 \pi n f/N} = N $$. But we also know that when $f=k$ where $k$ is an integer other than a multiple of $N$, then
$$ e^{j\pi(N-1)f/N}\frac{\sin(\pi f)}{\sin(\pi f/N)} = 0 $$
because $\sin(\pi f)=0$ and $\sin(\pi f/N) \ne 0$.
$$\begin{align}
\sum_{n=0}^{N-1} e^{j 2 \pi n f/N} &= e^{j\pi(N-1)f/N}\frac{\sin(\pi f)}{\sin(\pi f/N)} \\
\\
\frac{1}{N}\sum_{n=0}^{N-1} e^{j 2 \pi n (f-k)/N} &= \frac{1}{N} e^{j\pi(N-1)(f-k)/N}\frac{\sin(\pi (f-k))}{\sin(\pi (f-k)/N)} \\
\\
&= e^{j\pi(N-1)(f-k)/N}\frac{\sin(\pi (f-k))}{N \sin(\pi (f-k)/N)} \\
\\
&= \begin{cases}
1 \quad \text{for } f=k+mN, \ k,m\in \mathbb{Z} \\
0 \quad \text{for } f=i, \ i\in \mathbb{Z}, \ i \ne k+mN \\
\end{cases} \\
\end{align} $$
so, if you define
$$ \hat{X}(f) \triangleq \sum\limits_{k=0}^{N-1} X[k] \, e^{j\pi(N-1)(f-k)/N}\frac{\sin(\pi (f-k))}{N \sin(\pi (f-k)/N)} $$
you will see that
$$\hat{X}(k) = X[k] \qquad \text{for } 0 \le k < N $$
but this is the same $ \hat{X}(f) $
$$\begin{align}
\hat{X}(f) &= \sum\limits_{k=0}^{N-1} X[k] \, \frac{1}{N}\sum_{n=0}^{N-1} e^{j 2 \pi n (f-k)/N} \\
&= \sum_{n=0}^{N-1} e^{j 2 \pi n f/N} \frac{1}{N} \sum\limits_{k=0}^{N-1} X[k] \, e^{-j 2 \pi nk/N} \\
&= \sum_{n=0}^{N-1} e^{j 2 \pi n f/N} \frac{1}{N} \sum\limits_{k=0}^{N-1} X[k] \, e^{-j 2 \pi nk/N} \\
&= \sum_{n=0}^{N-1} e^{j 2 \pi n f/N} x[n] \\
\end{align}$$
So when $f=k \in \mathbb{Z}$, then
$$\begin{align}
\hat{X}(f)\bigg|_{f=k} &= X[k] \\
&= \sum_{n=0}^{N-1} x[n] e^{j 2 \pi n k/N} \\
\end{align}$$