I would build a window box frame out of vinyl wood make it 1/8 to 1/4" larger inside than the replacement window. Install as a standard new construction window (flashing,insulation, etc). Install vinyl outside stops and caulk the inside edge. Slide the replacement window in against the caulked stop, install side screws, insulate around the sides, and then install the inside stop.