One example: do some class forcing over $L$ to produce a proper class $V\models$ ZFC + "there is no set-forcing which forces that $V[G]=L[x]$ for a set $x$". Now do Jensen coding forcing over $V$ to produce $W=V[x]=L[x]$ with a real $x$.
A second example: class force over $L[U]$ to produce a model $W$ satisfying "there is a measurable cardinal $\mu$ and there is no set $X$ such that $V=L[X]$". Let $$j:W\to V=\mathrm{Ult}(W,D)$$ be the ultrapower map where $W\models$"$D$ is a $\mu$-complete non-principal ultrafilter over $\mu$". Then $(V,W)$ works, because (i) $V\models$"There is no set $X$ such that $V=L[X]$", since $W$ models that statement, and (ii) because $W=V[D]$. The latter can be seen by iteratively inverting $j$ definably over $V[D]$. That is, compute $(V_\alpha^W,j\upharpoonright V_\alpha^W)$ recursively on ordinals $\alpha$. For $\alpha\leq\mu$ this is trivial. Given $(V_\alpha^W,j\upharpoonright V_\alpha^W)$ and $\beta=\sup j``\alpha$, observe that $V_{\alpha+1}^W$ is just the set of all $j\upharpoonright V_\alpha^W$-preimages of elements of $V_{\beta+1}^V$. That is, $X\in V_{\alpha+1}^W$ iff there is $Y\in V_{\beta+1}^V$ such that $X=((j\upharpoonright V_\alpha^W)^{-1})``Y$. If $\alpha$ is a successor or has cofinality $\neq\mu$, as computed in $W$, or equivalently, in $V$, or equivalently, in $W[D]$, then moreover, $j(\alpha)=\beta$, and $j\upharpoonright V_{\alpha+1}^W$ is given by inverting the collapses $Y\mapsto X$ just computed. If instead $\alpha$ has cofinality $\mu$ (in any of those three models) then $j(V_{\alpha+1}^W)=\mathrm{Ult}(V_{\alpha+1}^W,D)$ and $j\upharpoonright V_{\alpha+1}^W$ is the corresponding ultrapower map; here the functions used to form the ultrapower are just those (coded) in $V_{\alpha+1}^W$ itself. The only information needed in this process that wasn't already in $V$ was the use of $D$ to form the ultrapower when $\alpha$ has cofinality $\mu$. And $W$ is not a set forcing extension of $V$ because there is a proper class of ordinals which are cardinals in $V$ but not cardinals in $W$. And here $V$ is definable from the parameter $D$ over $W$ (and we could have in fact arranged that $D$ is unique in $W$, and hence $V$ definable without parameters over $W$).
(The general idea here is also used in my paper "Varsovian models $\omega$", and some of the calculations in "Varsovian models II" (joint with Sarsgyan, Schindler) and "Periodicity in the cumulative hierarchy" (joint with Goldberg).)