Suppose I'm given $\theta_0$ and I want to sample data from a density $f(Y|\theta_0)$ and then sample from the posterior of $\theta|Y$ (given, obviously, some prior). I want to do this lots of times, to get the sampling distribution of summaries of the posterior distribution.
If I have one MCMC sample of $M$ realisations, $\theta_1,\ldots,\theta_M$, for a sample $Y_1,\dots,Y_n$ it seems that I should be able to reweight it for another sample $Y'_1,\dots, Y_n$ using the likelihood ratio: the weight for $\theta_i$ would be $$w_i=\frac{f(Y'_1,\dots,Y'_n|\theta_i)}{f(Y_1,\dots,Y_n|\theta_i)}$$ If I then sample from $\theta_1,\dots,\theta_M$ with probabilities proportional to $w_i$, I should get some sort of approximate sample from the posterior of $\theta|Y'$. It's sort of reminiscent of importance sampling and of the particle filter.
This must have been tried. What is known about the effectiveness? How bad is it for well-behaved unimodal low-dimensional posteriors?