Everyone is right with all this ,just did this on 22 windows in brick very labor intensive, had to put little blocks on some for the gap as the screw would miss and or would pull frame out of square if it was not backed up and it wasnt tight/snug either the little block or wedges are hidden by silicone caulk

I also cut a piece of plywood wider than the top header to the opening width and pre drilled several holes on top ran some 1/1/4 stainless screws into top then worked on the bottom big windows took double hung units out and just hung the frame and played with my level on all this ,they are all flush with no areas to pool water
as i had to frame outwards 2x4 plus sheeting to account for increased jamb thickness and get the plywood siding matched up and plumbed as most of everything was crooked or out of plumb before now it looks right and is plumb and square everwhere
cut sheet rock back using a level to plumb cut line and recess inwards bad thing is windows sills are in the way as they are too wide now
i liked using my old angle grinder on the mortar flash as if i touched the mortar it would crack, dusty but effective with masonry disk and plastic on the inside
the long screw must get into the meat of the house frame, took some adhesive, glued blocks in after many trial fits and shot some long finish nails into small wood blocks
to back up window drilled a small hole at angle above sill in side jamb then a light countersink carefully as the screwhead would interfear with slide clearance
i liked the fine head stainless screws but couldnt find them long enough so i lightly ground the heads down on the 3 " screws and they worked fine with the window slides and angled 3" stainiess screw into blocks
then lighty cut some narrow strips of insulation and tucked them into gaps so not to bow frames though
the windows look like they were built into the house

sheeting covered top edge
and had to do sheetrock cut back and plumbed from the header down because none of the walls were plumb and then do mud work inside and try to stay consistant on the brick sill outside also was a real pain but they look great and dont leak

installed Don Young double hung before silicone caulking