use this parameter instead:
w[N] = where 0 = hide from switchbar/treebar, 1 = show in switchbar, 2 = show in treebar, 3 = show in both

so w0 will hide the windows from treebar and switchbar

btw, i've tested //window -adohfk0p +fL @StartupLogo $int($calc($window(-1).w /2+ $window(-1).x -165)) $int($calc($window(-1).h /2+ $window(-1).y -173)) 330 246 and it run a window with a 0 width and height