Generate code for a named style, here the ID must be used in combination with the window. That is, the window will be mapped as a group and the style is part of the group's defs block.
strip the option's name of their leading minus sign (-).
Windows construct a new »viewport« using the <svg/> tag, the <defs/> section is moved from the »group« <g/> up, directly underneath the viewport <svg/>.
This does not affect styles; processed with »styleTkPathNew«, which are regular elements of a »PathCanvas« window! Don't get confused about window styles here.