code: def from_(self, pct_pts):
          
          pct_pts = np.asarray(pct_pts, dtype=np.float)
          has_z = (pct_pts.shape[-1] > 2)
  
          max_pt = list(self.viewer.get_window_size())
          if has_z:
              max_pt.append(0.0)
  
          win_pts = np.multiply(pct_pts, max_pt)
  
          # round to pixel units, if asked
          if self.as_int:
              win_pts = np.rint(win_pts).astype(np.int, copy=False)
  
          return win_pts
docs: Reverse of :meth:`to_`.