Make createWindowClone aware of width and height

This replaces the "size"-parameter of createWindowClone() by "width" and "height", so that these are now used for the clone to fit into. If one of them is not given, the respective dimension is not regarded.