Required library edition: Required library file: dhtmlxwindows.js
returns current window's header icon
var icon = dhxWins.window(id).getIcon();