i forgot that issue from the old behavior
check for window handle too (to avoid exception)
Merge pull request #1215 from MahApps/1214-punker76-fuxyz-AllowsTransparency-

fix System.InvalidOperationException with AllowsTransparency