[Mac] Set Dialog parent correctly if requested
[Mac] Set Dialog parent correctly if requested

mono/xwt,hwthomas/xwt,akrisiun/xwt,residuum/xwt,hamekoz/xwt,TheBrainTech/xwt,cra0zy/xwt,antmicro/xwt,lytico/xwt