Initialize viewport on given painter