How to get the rendered window size when directly using PlotlyJS

How about size(pl.window)? PlotlyJS vs Plots+plotlyjs() - #6 by PetrKryslUCSD