Bug introduced in 10.4 or earlier and persists through 12.1
[CASE:3993149]
In most cases dragging notebook's window around does not affect its WindowSize.
Why is this Dynamic triggered then?
Dynamic[
{RandomReal[], CurrentValue[WindowSize]}
, TrackedSymbols :> {}
]
The problem is closely related to this one:
Notebook's WindowSize interference with contents' Dynamic ImageSizes
and looking on how it was handled by WRI I don't have high hopes for fixing it.
The question is, can this be avoided/optimized? Is this a bug, or did I miss something?

TrackedSymbols :> {}? – Coolwater Jan 05 '18 at 14:55CurrentValue @ WindowSizeorOptionis not a symbol in this context. – Kuba Jan 05 '18 at 15:09