Showing window at optimum size

 

This function attempt to show the selected window at its best size. Since the various chess piece sets where draw in different sizes they are best shown in their original size.